/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package battleship_server;

/**
 *
 * @author jalejandrovc
 */
public class Player {

    private String name = "";
    private String username = "";
    private String password = "";
    private String email = "";
    private int score = 0;
    private int id_player = 0;
    private boolean isPlaying = false;
    private boolean isReady = false;
    private String lastIPAddress = "";
    private boolean banned = false;
    
    Player(String _name, String _user, String _password, String _mail, String _lastIPAddress) {
        name = _name;
        username = _user;
        password = _password;
        email = _mail;
        lastIPAddress = _lastIPAddress;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the user
     */
    public String getUser() {
        return username;
    }

    /**
     * @param user the user to set
     */
    public void setUser(String user) {
        this.username = user;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the mail
     */
    public String getMail() {
        return email;
    }

    /**
     * @param mail the mail to set
     */
    public void setMail(String mail) {
        this.email = mail;
    }

    /**
     * @return the score
     */
    public int getScore() {
        return score;
    }

    /**
     * @param score the score to set
     */
    public void setScore(int score) {
        this.score = score;
    }

    /**
     * @return the isPlaying
     */
    public boolean isIsPlaying() {
        return isPlaying;
    }

    /**
     * @param isPlaying the isPlaying to set
     */
    public void setIsPlaying(boolean isPlaying) {
        this.isPlaying = isPlaying;
    }

    /**
     * @return the isReady
     */
    public boolean isIsReady() {
        return isReady;
    }

    /**
     * @param isReady the isReady to set
     */
    public void setIsReady(boolean isReady) {
        this.isReady = isReady;
    }

    /**
     * @return the lastIPAddress
     */
    public String getLastIPAddress() {
        return lastIPAddress;
    }

    /**
     * @param lastIPAddress the lastIPAddress to set
     */
    public void setLastIPAddress(String lastIPAddress) {
        this.lastIPAddress = lastIPAddress;
    }

    /**
     * @return the banned
     */
    public boolean isBanned() {
        return banned;
    }

    /**
     * @param banned the banned to set
     */
    public void setBanned(boolean banned) {
        this.banned = banned;
    }

    /**
     * @return the id_player
     */
    public int getId_player() {
        return id_player;
    }

    /**
     * @param id_player the id_player to set
     */
    public void setId_player(int id_player) {
        this.id_player = id_player;
    }
}